//
//  YWReminder.h
//  maintain
//
//  Created by kyo on 17/1/8.
//  Copyright © 2017年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, YWReminderType) {
    YWReminderType_replyMessage = -1,//评论消息
    YWReminderType_uploadFailed = 0,//离线任务
    YWReminderType_missionExpiration = 1,//任务过期
    YWReminderType_missionChange = 2,//任务变更
    YWReminderType_missionCancel = 3,//任务取消
    YWReminderType_keepWatchNoBody = 4,//无人巡更
    YWReminderType_inspectionNoBody = 5,//无人巡查
    YWReminderType_dailyRport = 6,//工作日报
    YWReminderType_systemNotice = 7,//系统通知
    YWReminderType_appVersionNotice = 8,//新版本通知
};

typedef NS_ENUM(NSInteger, YWReminderOperationType) {
    YWReminderOperationType_missionModify = 3,//任务修改（除维修外）
    YWReminderOperationType_cancelPostTrouble = 4,//取消报障单
    YWReminderOperationType_rejectTrouble = 5,//退回维修任务
    YWReminderOperationType_cancelTrouble = 6,//撤回维修任务
};

@interface YWReminder : NSObject

@property (nonatomic, assign) NSInteger reminderId;
/**标题*/
@property (nonatomic, copy) NSString *title;
/**内容*/
@property (nonatomic, copy) NSString *content;
/**创建时间*/
@property (nonatomic, assign) NSTimeInterval createTime;
/**关联ID*/
@property (nonatomic, assign) NSInteger relationId;
/**类型*/
@property (nonatomic, assign) YWReminderType type;
/**操作类型*/
@property (nonatomic, assign) YWReminderOperationType operationType;
/**链接地址*/
@property (nonatomic, copy) NSString *linkUrl;
/**任务编号*/
@property (nonatomic, copy) NSString *missionSequence;
/**任务标题*/
@property (nonatomic, copy) NSString *missionTitle;
/**线路名称*/
@property (nonatomic, copy) NSString *patrolLineName;
/**任务类型（参考maintenanceType类型）*/
@property (nonatomic, assign) NSInteger missionType;
/**过期时间*/
@property (nonatomic, assign) NSTimeInterval expDate;

/**任务时间区间之开始时间*/
@property (nonatomic, assign) NSTimeInterval missionStartTime;
/**任务时间区间之结束时间*/
@property (nonatomic, assign) NSTimeInterval missionEndTime;

/**今日待办：未分配报障数量*/
@property (nonatomic, assign) NSInteger todoDesignTroubleCount;
/**今日待办：巡更任务数*/
@property (nonatomic, assign) NSInteger todoKeepWatchMissionCount;
/**今日待办：巡查任务数*/
@property (nonatomic, assign) NSInteger todoInspectionMissionCount;
/**今日待办：检测设备数*/
@property (nonatomic, assign) NSInteger todoDetectionCount;
/**今日待办：保养设备数*/
@property (nonatomic, assign) NSInteger todoUpkeepCount;
/**今日待办：维修任务数*/
@property (nonatomic, assign) NSInteger todoFixTroubleCount;

/**昨日完成：巡更次数*/
@property (nonatomic, assign) NSInteger finishKeepWatchCount;
/**昨日完成：巡查次数*/
@property (nonatomic, assign) NSInteger finishInspectionCount;
/**昨日完成：检测设备数量*/
@property (nonatomic, assign) NSInteger finishDetectionCount;
/**昨日完成：保养设备数量*/
@property (nonatomic, assign) NSInteger finishUpkeepCount;
/**昨日完成：维修设备数量*/
@property (nonatomic, assign) NSInteger finishFixTroubleCount;

/**版本数字代号，例如：380*/
@property (nonatomic, assign) NSInteger versionCode;
/**版本名次，例如：3.8.0*/
@property (nonatomic, copy) NSString *versionName;
/**版本描述*/
@property (nonatomic, copy) NSString *versionDescription;
/**发布日期*/
@property (nonatomic, assign) NSTimeInterval publishDate;

//----列表显示未读数，不解析
@property (nonatomic, assign) NSInteger unreadCount;
@end


@interface YWReminderJson : NSObject
/**任务过期提醒集合*/
@property (nonatomic, strong) NSArray *remindMissionExps;
/**任务变更提醒集合*/
@property (nonatomic, strong) NSArray *remindMissionChanges;
/**任务取消提醒集合*/
@property (nonatomic, strong) NSArray *remindMissionCancels;
/**无人巡更提醒集合*/
@property (nonatomic, strong) NSArray *remindKeepWatchNoBodies;
/**无人巡查提醒集合*/
@property (nonatomic, strong) NSArray *remindInspectionNoBodies;
/**日报提醒集合*/
@property (nonatomic, strong) NSArray *remindDayReports;
/**系统通知提醒集合*/
@property (nonatomic, strong) NSArray *remindSystemNotices;
/**软件版本通知提醒集合*/
@property (nonatomic, strong) NSArray *remindAppVersionNotices;
@end



//@interface YWReminderMissionExpiration : NSObject
//@end
//
//@interface YWReminderMissionChange : NSObject
//@end
//
//@interface YWReminderMissionCancel : NSObject
//@end
//
//@interface YWReminderKeepWatchNoBody : NSObject
//@end
//
//@interface YWReminderInspectionNoBody : NSObject
//@end
//
//@interface YWReminderDailyRport : NSObject
//@end
//
//@interface YWReminderSystemNotice : NSObject
//@end
//
//@interface YWReminderAppVersionNotice : NSObject
//@end




